<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加轮播图</title>
    <link rel="stylesheet" href="/layui/css/layui.css"/>
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/css/banner/banner-list-edit.css"/>
</head>
<body>
    <div class="layui-row layui-col-md12" id="box-top">
        <div class="layui-elem-quote">
            <span>添加轮播图</span>
            <div style="float: right;">
                <button class="layui-btn layui-icon layui-icon-refresh-1"> 刷新</button>
                <button class="layui-btn layui-icon layui-icon-return"> 返回</button>
            </div>
        </div>
    </div>
    <div id="box-box">
        <form class="layui-form layui-col-md12">
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label">轮播图标题：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" placeholder="请输入轮播图名称" id="imgTitle" required lay-verify="required"/>
                </div>
            </div>
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label">轮播图名称：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" placeholder="请输入轮播图名称" id="bannerName" required lay-verify="required"/>
                </div>
            </div>
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label">轮播图类型：</label>
                <div class="layui-input-inline">
                    <select class="layui-select" id="imgType" lay-verify="operType">
                        <option value="">请选择轮播图类型</option>
                        <option value="2">商品</option>
                        <option value="3">视频</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label">开始时间：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" id="startDate" placeholder="请选择开始时间"  required lay-verify="required"/>
                </div>
            </div>
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label">结束时间：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" id="expireDate" placeholder="请选择结束时间"  required lay-verify="required"/>
                </div>
            </div>
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label">上下/下线：</label>
                <div class="layui-input-inline" style="padding-top: 10px">
                    <select class="layui-select" id="display" lay-verify="operStatus">
                        <option value="">请选择上线/下线</option>
                        <option value="2">显示</option>
                        <option value="3">不显示</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline">
                    <img id="imgAddress">
                    <button type="button" class="layui-btn" id="upload" lay-verify="upImg">上传图片</button>
                </div>
            </div>
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label">描述：</label>
                <div class="layui-input-inline">
                    <textarea id="describe" class="layui-textarea" style="outline: none;resize: none;" placeholder="请输入描述"  required lay-verify="required"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-inline">
                    <textarea id="remarks" class="layui-textarea" style="outline: none;resize: none;" placeholder="请输入备注"  required lay-verify="required"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-col-md12">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline">
                    <button type="button" class="layui-btn" id="tijiao" lay-submit lay-filter="submitBanner">添加轮播图</button>
                </div>
            </div>
        </form>
    </div>
</body>
<script src="/js/newbanner/banner-add.js"></script>
</html>